<!--添加餐柜-->
<template>
    <div>
                <el-row class="nav_a_top">
                     <el-col :span="12"><div @click="fanhui" class="grid-content bg-purple-light"><div class="el-icon-back fs20"></div></div></el-col>
                     <el-col :span="12"><div class="grid-content bg-purple-light floatright"><div>添加餐柜</div></div></el-col>
                </el-row>
                <el-form ref="form" :model="form" label-width="80px" class="fromtop">
                    <el-form-item label="餐柜名称" >
                        <el-input v-model="form.name"></el-input>
                    </el-form-item>
                    <el-form-item label="合作公司">
                        <el-input v-model="form.name"></el-input>
                    </el-form-item>
                    <el-form-item label="所在地区">
                        <el-select v-model="form.region" placeholder="郑州市金水区">
                        <el-option label="区域一" value="shanghai"></el-option>
                        <el-option label="区域二" value="beijing"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="详细地址">
                        <el-input v-model="form.name"></el-input>
                    </el-form-item>
                    <el-form-item label="备注">
                        <el-input v-model="form.name"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="baocun">保存</el-button>
                    </el-form-item>
                </el-form>
    </div>
</template>
<script>
    export default{
        name:'addcangui',
        data(){
            return{
                form: {
                    name: '',
                    region: '',
                    date1: '',
                    date2: '',
                    delivery: false,
                    type: [],
                    resource: '',
                    desc: ''
                    }
            }
        },
        methods:{
            baocun:function(){
                this.$store.state.container_shoeornot=true;
                this.$store.state.add_cangui_showornot=false;
                this.$store.state.add_cangge_showornot=false;
            },
            fanhui:function(){
                this.$store.state.container_shoeornot=true;
                this.$store.state.add_cangui_showornot=false;
                this.$store.state.add_cangge_showornot=false;
            },
        }
    }
</script>
<style scoped>  
.floatright{float: right;margin-right: 30px;}
.fromtop{margin-top: 30px;}
</style>